home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
gnulib
/
libsrc98.zoo
/
fsetpos.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-29
|
283b
|
23 lines
/* from Dale Schumacher's dLibs */
#include <stdio.h>
int
fsetpos(fp, pos)
FILE *fp;
fpos_t *pos;
{
register long rv;
if (pos)
{
rv = fseek(fp, *pos, SEEK_SET);
if (rv >= 0)
{
fp->_flag &= ~(_IOEOF|_IOERR);
return (0);
}
}
return (-1);
}